﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ChangePassword.aspx.cs" Inherits="HealthSystem.ChangePassword" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="panel1" />
    <ext:Panel runat="server" ShowHeader="false" ShowBorder="false" ID="panel1" BodyPadding="8px">
        <Toolbars>
            <ext:Toolbar ID="Toolbar1" runat="server">
                <Items>
                     <ext:Button ID="save" Text="保存" runat="server" Icon="SystemSave" OnClick="save_Click" ValidateForms="from2"></ext:Button>
                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:Form ID="from2" runat="server" ShowHeader="false" ShowBorder="false" Width="500px">
                <Rows>
                    <ext:FormRow>
                        <Items>
                            <ext:Label runat="server" Label="用户名" ID="username"></ext:Label>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:TextBox ID="oldpassword" runat="server" TextMode="Password" Label="旧密码" Required="true" ShowRedStar="true"></ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:TextBox ID="newpassword" runat="server" TextMode="Password" Label="新密码" Required="true" ShowRedStar="true" MinLength="6"  MinLengthMessage="密码最小长度为六位"></ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:TextBox ID="confirmpassword" runat="server" TextMode="Password" Label="确认" Required="true" ShowRedStar="true" MinLength="6" MinLengthMessage="密码最小长度为六位"></ext:TextBox>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow>
                        <Items>
                            <ext:Label runat="server" Text="密码最低长度为6位"></ext:Label>
                        </Items>
                    </ext:FormRow>
                </Rows>
            </ext:Form>
        </Items>
    </ext:Panel>
    </form>
</body>
</html>
